package com.bw.area.client;

import com.bw.result.ResultVo;
import com.bw.vo.AreaVo;
import com.bw.vo.TagsVo;
import com.bw.vo.TbDictionaryVo;
import com.bw.vo.TbHouseInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author liuzhihao
 * @version 1.0
 * @description: TODO
 * @date 2023/11/13 9:46:09
 */
@FeignClient(value = "service-area-manager")
public interface TbDictionaryClient {

    @PostMapping("/dictionary/listTypeVue")
    ResultVo listTypeVue(@RequestBody TbDictionaryVo tbDictionaryVo);

    @PostMapping("/dictionary/listType")
    public ResultVo listType(@RequestBody TbDictionaryVo tbDictionaryVo);

    @PostMapping("/dictionary/getDictionaryID")
    public String getDictionaryID(@RequestBody TbDictionaryVo tbDictionaryVo);

    @PostMapping("/area/getAreaById")
    public String getAreaById(@RequestParam("id") Integer id);

    @PostMapping("/area/getAreas")
    AreaVo getAreas(@RequestBody TbHouseInfoVo tbHouseInfoVo);

    @PostMapping("/dictionary/getTags")
    List<String> getTags(@RequestBody TagsVo tagsVo);

}
